package cn.wolfcode.luowowo.web.controller;

import cn.wolfcode.luowowo.SmsFeignApi;
import cn.wolfcode.luowowo.common.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by wolfcode-lanxw
 */
@RestController
@RequestMapping("/verifyCode")
public class VerifyCodeController {
    @Autowired
    private SmsFeignApi smsFeignApi;
    @GetMapping("/sendVerifyCode")
    public Result sendSms(String phone){
        return smsFeignApi.sendVerifyCode(phone);
    }
}
